﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;

namespace Common.Expansion
{
    public static class PageEx
    {
        public static void Alert(this Page page, string message)
        {
            string js = "<script>alert('" + message + "')</script>";
            page.ClientScript.RegisterStartupScript(page.GetType(), "message", js);
        }
    }
}
